package com.duowan.realtime.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * tableName: ods_raw_action_log [OdsRawActionLog]
 * 
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */
public class OdsRawActionLog implements java.io.Serializable {
	private static final long serialVersionUID = 5454155825314635342L;

	// date formats

	// 可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	// columns START
	/**
	 * dt db_column: dt
	 */
	@Length(max = 20)
	private String dt;

	/**
	 * stime db_column: stime
	 */
	@NotBlank
	@Length(max = 30)
	private String stime;

	/**
	 * product db_column: product
	 */
	@Length(max = 20)
	private java.lang.String product;

	/**
	 * iver db_column: iver
	 */
	@Length(max = 100)
	private java.lang.String iver;

	/**
	 * mid db_column: mid
	 */
	@Length(max = 128)
	private java.lang.String mid;

	/**
	 * passport db_column: passport
	 */
	@Length(max = 60)
	private java.lang.String passport;

	/**
	 * yyuid db_column: yyuid
	 */
	@Length(max = 50)
	private java.lang.String yyuid;

	/**
	 * game db_column: game
	 */
	@Length(max = 20)
	private java.lang.String game;

	/**
	 * gameServer db_column: game_server
	 */
	@Length(max = 50)
	private java.lang.String gameServer;

	// columns END

	public OdsRawActionLog() {
	}

	public java.lang.String getProduct() {
		return this.product;
	}

	public void setProduct(java.lang.String value) {
		this.product = value;
	}

	public java.lang.String getIver() {
		return this.iver;
	}

	public void setIver(java.lang.String value) {
		this.iver = value;
	}

	public java.lang.String getMid() {
		return this.mid;
	}

	public void setMid(java.lang.String value) {
		this.mid = value;
	}

	public java.lang.String getPassport() {
		return this.passport;
	}

	public void setPassport(java.lang.String value) {
		this.passport = value;
	}

	public java.lang.String getYyuid() {
		return this.yyuid;
	}

	public void setYyuid(java.lang.String value) {
		this.yyuid = value;
	}

	public java.lang.String getGame() {
		return this.game;
	}

	public void setGame(java.lang.String value) {
		this.game = value;
	}

	public java.lang.String getGameServer() {
		return this.gameServer;
	}

	public void setGameServer(java.lang.String value) {
		this.gameServer = value;
	}


	public String getDt() {
		return dt;
	}

	public void setDt(String dt) {
		this.dt = dt;
	}

	public String getStime() {
		return stime;
	}

	public void setStime(String stime) {
		this.stime = stime;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

	public int hashCode() {
		return new HashCodeBuilder().append(getDt()).toHashCode();
	}

	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj instanceof OdsRawActionLog == false)
			return false;
		OdsRawActionLog other = (OdsRawActionLog) obj;
		return new EqualsBuilder().append(getDt(), other.getDt()).isEquals();
	}
}
